//
//  GZGJDetailCell1.m
//  Tunnel
//
//  Created by wbb on 2025/6/15.
//

#import "GZGJDetailCell1.h"
#import "WXJLModel.h"

@implementation GZGJDetailCell1

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
//    self.titleLab.text = @"";
//    self.detailLab.text = @"";
    self.cljgLab.text = @"测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试";
}

- (void)cellWithData:(id)data andIndex:(NSInteger )index {
    NSArray *arr = (NSArray *)data;
    WXJLModel *model = arr[index];
    self.titleLab.text = [NSString stringWithFormat:@"维修人员 %@",model.czrMc];
    self.gzlxLab.text = [NSString stringWithFormat:@"故障类型：%@",model.gzlx];
    self.cljgLab.text = [NSString stringWithFormat:@"处理结果：%@",model.cljg];
    self.yyfxLab.text = [NSString stringWithFormat:@"原因分析：%@",model.yyms];
    self.clbzLab.text = [NSString stringWithFormat:@"处理步骤：%@",model.clbz];
    self.timeLab.text = [NSString stringWithFormat:@"%@",model.createTime];

    if(index == arr.count - 1) {
        self.lineView.hidden = YES;
    }else {
        self.lineView.hidden = NO;
    }
}

@end
